package com.lt.interactive.wechat.service;

import com.baomidou.mybatisplus.extension.service.IService;



import com.lt.bcra.result.ResultData;
import com.lt.interactive.wechat.entity.BcraPersonalInfo;

import javax.servlet.http.HttpServletRequest;


/**
 * <p>
 * 用户信息登录注册表 服务类
 * </p>
 *
 * @author LuoTian
 * @since 2022-06-11
 */
public interface BcraPersonalInfoService extends IService<BcraPersonalInfo> {

    /**
     * 用户注册
     * @param bcraPersonalInfo
     * @return
     */
    ResultData registerUser(BcraPersonalInfo bcraPersonalInfo);

    /**
     * 利用openid判断数据库是否已经含有用户信息
     * @param openid
     * @return
     */
    BcraPersonalInfo selectWxInfoOpenId(String openid);

    /**
     * 绑定微信
     * @param id
     * @return
     */
    ResultData bindWechat(Integer id,String openid,String wechat);
}
